﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Bom_MTO_Sefi_1 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Bom_MTO_Sefi_1", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Bom_MTO_Sefi_1", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Bom_MTO_Sefi_1", "No");

        [Column]
        public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } }
        private string _SAP_Code;
        public static FieldInfo sap_code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "SAP_Code");

        [Column]
        public string Base_Quantity { get { return _Base_Quantity; } set { _Base_Quantity = value; EntityState.FieldChange("Base_Quantity"); } }
        private string _Base_Quantity;
        public static FieldInfo base_quantity = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Base_Quantity");

        [Column]
        public string Color_Code { get { return _Color_Code; } set { _Color_Code = value; EntityState.FieldChange("Color_Code"); } }
        private string _Color_Code;
        public static FieldInfo color_code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Color_Code");

        [Column]
        public string Submit_Person { get { return _Submit_Person; } set { _Submit_Person = value; EntityState.FieldChange("Submit_Person"); } }
        private string _Submit_Person;
        public static FieldInfo submit_person = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Submit_Person");

        [Column]
        public string Product_KPL { get { return _Product_KPL; } set { _Product_KPL = value; EntityState.FieldChange("Product_KPL"); } }
        private string _Product_KPL;
        public static FieldInfo product_kpl = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Product_KPL");

        [Column]
        public string Valid_From { get { return _Valid_From; } set { _Valid_From = value; EntityState.FieldChange("Valid_From"); } }
        private string _Valid_From;
        public static FieldInfo valid_from = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Valid_From");

        [Column]
        public string Formula_Code { get { return _Formula_Code; } set { _Formula_Code = value; EntityState.FieldChange("Formula_Code"); } }
        private string _Formula_Code;
        public static FieldInfo formula_code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Formula_Code");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant;
        public static FieldInfo plant = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Plant");

        [Column]
        public string Alternative_TXT { get { return _Alternative_TXT; } set { _Alternative_TXT = value; EntityState.FieldChange("Alternative_TXT"); } }
        private string _Alternative_TXT;
        public static FieldInfo alternative_txt = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Alternative_TXT");

        [Column]
        public string MTO_Code { get { return _MTO_Code; } set { _MTO_Code = value; EntityState.FieldChange("MTO_Code"); } }
        private string _MTO_Code;
        public static FieldInfo mto_code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "MTO_Code");

        [Column]
        public string T_Alternative_Bom { get { return _T_Alternative_Bom; } set { _T_Alternative_Bom = value; EntityState.FieldChange("T_Alternative_Bom"); } } private string _T_Alternative_Bom; public static FieldInfo t_Alternative_Bom = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Alternative_Bom");
        [Column]
        public string T_Old_Material_Code { get { return _T_Old_Material_Code; } set { _T_Old_Material_Code = value; EntityState.FieldChange("T_Old_Material_Code"); } } private string _T_Old_Material_Code; public static FieldInfo t_Old_Material_Code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Old_Material_Code");
        [Column]
        public string T_SEFI_SAP_Code { get { return _T_SEFI_SAP_Code; } set { _T_SEFI_SAP_Code = value; EntityState.FieldChange("T_SEFI_SAP_Code"); } } private string _T_SEFI_SAP_Code; public static FieldInfo t_SEFI_SAP_Code = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_SEFI_SAP_Code");
        [Column]
        public string T_Plant { get { return _T_Plant; } set { _T_Plant = value; EntityState.FieldChange("T_Plant"); } } private string _T_Plant; public static FieldInfo t_Plant = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Plant");
        [Column]
        public string T_BoM_Usage { get { return _T_BoM_Usage; } set { _T_BoM_Usage = value; EntityState.FieldChange("T_BoM_Usage"); } } private string _T_BoM_Usage; public static FieldInfo t_BoM_Usage = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_BoM_Usage");
        [Column]
        public string T_Base_quantity { get { return _T_Base_quantity; } set { _T_Base_quantity = value; EntityState.FieldChange("T_Base_quantity"); } } private string _T_Base_quantity; public static FieldInfo t_Base_quantity = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Base_quantity");
        [Column]
        public string T_BoM_status { get { return _T_BoM_status; } set { _T_BoM_status = value; EntityState.FieldChange("T_BoM_status"); } } private string _T_BoM_status="S"; public static FieldInfo t_BoM_status = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_BoM_status");
        [Column]
        public string T_Alt_text { get { return _T_Alt_text; } set { _T_Alt_text = value; EntityState.FieldChange("T_Alt_text"); } } private string _T_Alt_text; public static FieldInfo t_Alt_text = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Alt_text");
        [Column]
        public string T_Lot_Size { get { return _T_Lot_Size; } set { _T_Lot_Size = value; EntityState.FieldChange("T_Lot_Size"); } } private string _T_Lot_Size; public static FieldInfo t_Lot_Size = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Lot_Size");
        [Column]
        public string T_Top_Sefi { get { return _T_Top_Sefi; } set { _T_Top_Sefi = value; EntityState.FieldChange("T_Top_Sefi"); } } private string _T_Top_Sefi; public static FieldInfo t_Top_Sefi = new FieldInfo("mdc_Bom_MTO_Sefi_1", "T_Top_Sefi");











        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Bom_MTO_Sefi_1", "Status");
    }
}
